<?php
##############################################
#
#   规则
# @ Time : 2017-1-30 - 下午11:24:18
# @ Author : JiangYongWei <1085562810@qq.com>
# @ Encoding : UTF-8 language : PHP
#
##############################################


namespace Home\Model;

class LotteryRulesModel extends IndexBaseModel{
	/*规则表  */
	protected $tableName = 'lottery_rules';

	//规则设置
	public function getRules($r_id){
        return $this -> where("r_id = $r_id") -> find();
    }

    //投票规则设置
    public function getVoteRule(){
        $model = M();
        return $model -> table('mt_vote-rule') -> where("vote_id = 1") -> find();
    }

   
}
